package com.egg.ylt.view;

import com.egg.ylt.pojo.SwimHistoryEntity;
import com.egg.ylt.pojo.SwimHistoryListEntity;
import com.yonyou.framework.library.view.BaseView;

/**
 * author:        yupeng
 * created on:    2019/2/23 18:35
 * description:   游泳纪录
 */
public interface ISwimHistoryView extends BaseView {

    /**
     * 展示游泳纪录
     * @param swimHistoryEntity
     */
    void showSwimHistory(SwimHistoryEntity swimHistoryEntity);

    /**
     * 展示游泳纪录列表
     * @param swimHistoryListEntity
     * @param isRefresh
     */
    void showSwimHistoryList(SwimHistoryListEntity swimHistoryListEntity, boolean isRefresh);

    /**
     * 停止 ListView 下拉刷新和上拉加载更多
     */
    void stopListViewRefreshAndLoadMore();

    /**
     * 设置 是否到达最后一页 + 是否没有任何数据
     *
     * @param isLastPage 是否到达最后一页
     * @param isNoData   是否没有任何数据
     */
    void setListViewToLastPageAndNoData(boolean isLastPage, boolean isNoData);
}
